* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  vertical-align: top;
  border: none;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

.CustomImage-root {
  object-fit: contain;
}

input::-webkit-input-placeholder {
  color: rgba(195, 195, 195, 0.6);
  font-size: 14px;
}

input {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  display: inline-block;
}

input:focus {
  outline: 0;
  box-shadow: none;
}

button:focus {
  outline: 0;
}

button:active {
  outline: 0;
  box-shadow: none;
}

/* 设置滚动条的样式 */
::-webkit-scrollbar {
  width: 5px;
  height: 8px;
}

/* 滚动槽 */
::-webkit-scrollbar-track {
  box-shadow: inset 2px 0 16px rgba(255, 255, 255, 0.6);
  background: rgba(144, 150, 153, 0.1);
  border-radius: 2px;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: #ccc;
}

::-webkit-scrollbar-thumb:window-inactive {
  background: #ccc;
}

label {
  font-size: 16px;
}

// 朴素按钮
.is-plain {
  height: 28px;
  padding: 0 8px;
  text-align: center;
  border-radius: 3px;
  font-size: 12px;

  &.medium {
    height: 36px;
    padding: 0 15px;
    font-size: 14px;
  }

  &.primary {
    color: #2ea9e6;
    background: rgba(234, 246, 252, 1);
    border: 1px solid rgba(177, 222, 244, 1);
  }

  &.danger {
    color: #f56462;
    background: rgba(253, 239, 239, 1);
    border: 1px solid rgba(251, 202, 202, 1);
  }

  &.success {
    color: #62c232;
    background: rgba(98, 194, 50, 0.1);
    border: 1px solid rgba(98, 194, 50, 0.3);
  }
}

.org-text {
  font-size: 16px;
  font-weight: 500;
  color: #f58b22;
  cursor: pointer;
}

// input[readonly='true']:not(.ant-cascader-input, .ant-calendar-picker-input) {
//   border: none;
// }

// .ant-checkbox-checked .ant-checkbox-inner {
//   background-color: #2ea9e6;
//   border-color: #2ea9e6;
// }

// .ant-checkbox-checked::after {
//   border: 1px solid #2ea9e6;
// }

.ant-table-fixed .ant-btn.ant-btn-link,
.ant-table-body .ant-btn.ant-btn-link {
  padding: 0 5px;
}

.ant-tabs-nav-wrap {
  .ant-tabs-nav .ant-tabs-tab-active {
    color: #2ea9e6;
  }

  .ant-tabs-ink-bar {
    background-color: #2ea9e6;
  }
}

span {

  &.yellow,
  &.orange,
  &.red,
  &.primary {
    cursor: pointer;
  }

  &.primary {
    color: #1890ff;
  }

  &.yellow {
    color: #ffe58f;
  }

  &.orange {
    color: #e6a23c;
  }

  &.red {
    color: #ff4d4f;
  }

  &.disabled {
    color: rgba(0, 0, 0, 0.25);
    cursor: not-allowed;
  }
}

.page-footer {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin-top: 20px;
}

.ant-btn-back {
  border: none;
  margin-left: -10px;
}